{extends file='layout/default.tpl'}
{block name=title}易控-{if isset($smarty['get']['type']) && $smarty['get']['type']==1 }已下载
{elseif  isset($smarty['get']['type']) && $smarty['get']['type']==2}已过期{else}所有文件{/if}{/block}
{block name=head}
<link rel="stylesheet" href="/static/css/files.css?v={$smarty.const.UNCLONE_VERSION}" type="text/css" />
<link rel="stylesheet" href="/static/css/dialog.css?v={$smarty.const.UNCLONE_VERSION}" type="text/css" />
<script id="file-list-empty-msg-tpl" type="text/html">
	<div class="file-list-empty-msg">
		<form action="/file_s/u" id="upload_form" name="upload_form" enctype="multipart/form-data" method="post">
			<h1>还没有文件？</h1>
			<h2>
				<span>请</span><a href="javascript:void(0);" class="upload-btn" id="file-empty-upload-btn">上传文件</a><span>到</span><span class="system-name">易控</span><span>，文件会马上出现在这里</span>
			</h2>
		</form>
	</div>
</script>
{/block} {block name=body}
	{*<div id="data-loading-box"><div class="leftColumn"><div class="main-title clearfix"></div><div class="main"><div class="list"><div class="row item-border list-title "></div><div class="list-loading-box">正在加载...</div></div></div></div></div>*}
<div class="leftColumn" id="fileList">
	<div class="main-title clearfix" id="main-title">
		<div id="folderPath" class="folderPath">
			{*<span class="navtype">{if isset($smarty['get']['type']) && $smarty['get']['type']==1 }已下载{elseif  isset($smarty['get']['type']) && $smarty['get']['type']==2}已过期{else}所有文件{/if}</span>*}
		</div>
		<div class="rt" style="display:none;">
			<div class="detail" title="隐藏详细信息">
				<span class="icon"></span>	
			</div>
		</div>
		{*<div class="current-rows-count" id="current-rows-count">已加载 <span class="total">{$fileTotal}</span> 个</div>*}
	</div>
	<div class="main">
		<div class="list" >
			<div class="row item-border list-title " id="list-title" >
				{*<div class="col-1">

					<div class="chk" id="selAllFiles">
					{if isset($show_tool)}
						<div class="icon-checkbox"></div>
						{else}
						<div class="icon-checkbox" style="width:0;"></div>
					{/if}
					</div>

					<span class="icon">文件<span class="sort"></span></span>
					<span class="name"></span>
				</div>
				<div class="col-2"></div>
				<div class="col-3">大小<span class="sort"></span></div>
				<div class="col-4">上传时间<span class="sort desc" style="display: inline-block;"></span></div>
				<div class="col-5">即时收回</div>*}
			</div>
			<div class="content">
				<div id="mypage" >
					<div id="waterfall">
						<div class="list-loading-box">正在初始化界面...</div>
						{*{if isset($folderList) && is_array($folderList)}
						{foreach $folderList as $k => $folder}
						<div class="wfc row item-border item"  f-index="{$k+1}"   id="wfc_{$k+1}" data-type="folder" isforbin="{$folder.access_denied}">
							<div title="{$folder.name}" class="col-1 file">
								<div class="chk">
									{if isset($show_tool)}
										<div class="icon-checkbox"></div>
										{else}
										<div class="icon-checkbox" style="width: 0;"></div>
									{/if}
								</div>
								<div class="icon">
									<div class="imgBox">
										<div class="icon-ftype-dir"></div>
									</div>
								</div>
								<div class="name foldername">
									<span>{$folder.name}</span>
								</div>
							</div>
							<div class="col-1 fileedit">
								<div class="chk">
									{if isset($show_tool)}
										<div class="icon-checkbox"></div>
									{else}
										<div class="icon-checkbox" style="width: 0;"></div>
									{/if}
								</div>
								<div class="icon">
									<div class="imgBox">
										<div class="icon-ftype-dir"></div>
									</div>
								</div>
								<div class="name">
									<input type="text" class="edit-txt" maxlength="85">
								</div>
							</div>
							<div class="col-2 ">
								<div class="folder-icon-view" >
									<div title="访问控制" class="folder-icon-outer">
										<div class="icon">
											<div class="icons-oper icon-lock"></div>
										</div>
									</div>
									<div title="分享" class="folder-icon-outer">
										<div class="icon">
											<div class="icons-oper icon-share"></div>
										</div>
									</div>
									<div title="删除" class="folder-icon-outer">
										<div class="icon">
											<div class="icons-oper icon-del"></div>
										</div>
									</div>
									<div title="重命名" class="folder-icon-outer">
										<div class="icon-wrap">
											<div class="icon">
												<div class="icons-oper icon-rename"></div>
											</div>
										</div>
									</div>
								</div>
							</div>
							<div class="col-3">-</div>
							<div class="col-4">{$folder.creation_ts}</div>
							<div class="col-5"></div>
							<input type="hidden" value="{$folder.uuid}" AUTOCOMPLETE="off" name="uuid">
						</div>
						{/foreach}
						{/if}*}
						
						{*{foreach $file_list as $key => $file}
						<div class="wfc row item-border item {if $file.access_denied == 1}forbin{/if}"
							f-index="{$file.index}"
							id="wfc_{$file.index}"  data-type="file" isforbin="{$file.access_denied}">
							<div class="col-1" title="{$file.name}">
								<div class="chk">
									{if isset($show_tool)}
										<div class="icon-checkbox"></div>
									{else}
										<div class="icon-checkbox" style="width: 0;"></div>
									{/if}
								</div>
								<div class="icon">
									<div class="imgBox">
										<div class="icon-ftype-{$file.type} icon-position">
										</div>
									</div>
								</div>
								<div class="name">{$file.name}</div>
							</div>
							<div class="col-2 ">


								<div class="icon-view">
									{if isset($smarty['get']['type']) && $smarty['get']['type']==1 }
										<div class="icon-outer"
											 title="分享" data-action="copy_share">
											<div class="icon">
												<div class="icons-oper icon-share " ></div>
											</div>
										</div>
										<div class="icon-outer" title="文件轨迹">
											<div class="icon">
												<a href="/trace/index/{$file.uuid}"
												   class="icons-oper icon-locus"></a>
											</div>
										</div>
										<div class="icon-outer" title="下载源文件">
											<div class="icon">
												<a href="/files/export_source_file?id={$file.id}"
												   class="icons-oper icon-down" target="_blank"></a>
											</div>
										</div>
										{elseif isset($smarty['get']['type']) && $smarty['get']['type']==2}
										<div class="icon-outer" title="访问控制" data-action="policy_control">
											<div class="icon">
												<div class="icons-oper icon-lock"></div>
											</div>
										</div>
										<div class="icon-outer" title="文件轨迹">
											<div class="icon">
												<a href="/trace/index/{$file.id}"
												   class="icons-oper icon-locus"></a>
											</div>
										</div>
										<div class="icon-outer" title="下载源文件">
											<div class="icon">
												<a href="/files/export_source_file?id={$file.id}"
												   class="icons-oper icon-down" target="_blank"></a>
											</div>
										</div>
										{else}

										<div class="icon-outer" title="访问控制" data-action="policy_control">
											<div class="icon">
												<div class="icons-oper icon-lock"></div>
											</div>
										</div>
										<div class="icon-outer"
											 title="分享" data-action="copy_share">
											<div class="icon">
												<div class="icons-oper icon-share " ></div>
											</div>
										</div>
										<div class="icon-outer" title="文件轨迹">
											<div class="icon">
												<a href="/trace/index/{$file.uuid}"
												   class="icons-oper icon-locus"></a>
											</div>
										</div>
										<div class="icon-outer" title="删除" data-action="delete">
											<div class="icon">
												<div class="icons-oper icon-del"></div>
											</div>
										</div>
										<div class="icon-outer more" title="更多" data-action="more_tool">
											<div class="icon-wrap">
												<div class="icon">
													<div class="icons-oper icon-more"></div>
												</div>
											</div>
										</div>
									{/if}
								</div>
							</div>
							<div class="col-3">{$file.size}</div>
							<div class="col-4">{$file.created_ts}</div>
							<div class="col-5 policy-lock" title="{if $file.access_denied == 0}允许访问{else}禁止访问{/if}">
								<span class="slider {if $file.access_denied == 0}hover{/if}"></span>
								<span class="policy_sta {if $file.access_denied == 0}hover{/if}"></span>
							</div>
							<input type="hidden" value="{$file.uuid}" AUTOCOMPLETE="off" name="uuid">
							<input type="hidden" value="{$file.rid}" AUTOCOMPLETE="off" name="rid">
						</div>
						{/foreach}*}
					</div>
					{*{if $fileTotal == 0}
						<div class="file-list-empty-msg">
							{if !isset($smarty.get.type) || $smarty.get.type==0}
							<form action="/file_s/u" id="upload_form" name="upload_form" enctype="multipart/form-data" method="post">
							<h1>还没有文件？</h1>
							<h2>
								<span>请</span><a href="javascript:void(0);" class="upload-btn" id="file-empty-upload-btn">上传文件</a><span>到</span><span class="system-name">易控</span><span>，文件会马上出现在这里</span>
							</h2>
							</form>
							{/if}
						</div>
					{/if}*}
				</div>
			</div>
			<input type="hidden" id="totalPage" value="{$totalPage}" AUTOCOMPLETE="off" > 
			<input type="hidden" id="fileTotal" class="total" value="{$fileTotal}" AUTOCOMPLETE="off" >
			<input type="hidden" id="listPage" value="{$page}" AUTOCOMPLETE="off" >
			<input type="hidden" id="folderDefindMax" value="{$folderDefindMax|default:0}" AUTOCOMPLETE="off" >
		</div>

	</div>
</div>
{/block}

{block name=foot}
    <div class="list-to-top" id="listToTop"></div>
	<script id="-mob-share" src="//f1.webshare.mob.com/code/mob-share.js"></script>
{/block}


